<div id="tag" class="article_tag">
  <!--爆料开始-->
  <div class="conner_tag_top">
    <h2><%= @tag_name %></h2>
  </div>
  <div class="taginfo_intro">
    <div>
      <div class="img"><img src="/images/icon/pic_1.jpg" width="120" height="120" /></div>
      <div class="rr" style="width:520px;"><%= @tag.description %> 11个动漫的年代养成了一群执着于动漫的孩。我不知道有多少人爱着动漫，我不知道这其中有多少攒着钱买新出的光盘，数着日子盼着每年新出的剧场。评论：一个动漫的年代养成了一群执着于动漫的孩。我不知道有多少人爱着动漫，我不知道这其中有多少攒着钱买新出的光盘，数着日子盼着每年新出的剧场。</div>
    </div>
    <div class="clear"></div>
    <div class="corre clearfix">
      <span class="ll">
        <span>相关商品标签：</span>
        <% @tag.tags.each do |tag| -%>
          <%= link_to tag_name(tag), tag_path(:name => tag_name(tag)) %><%= tag_qty(tag) %>&nbsp;&nbsp;
        <% end -%>
      </span>
      <span class="rr more">
        <img src="/images/arrow_tag_1.gif" width="7" height="11" alt=" " />&nbsp;&nbsp;更多
      </span>
    </div>
    <div class="clear"></div>
    <div class="info_detail same">
      <ul>
      <% if params[:cat1_id] %>
        <% @tag.cat2s(params[:cat1_id]).each do |category| -%>
          <li><%= link_to category.name, tag_path(:name => @tag.name) %>(<%= category.cat2_items.count %>)</li>
        <% end -%>
      <% else %>
        <% @tag.cat1s.each do |category| -%>
          <li><%= link_to category.name, tag_path(:name => @tag.name, :cat1_id => category.id) %>(<%= category.cat1_items.count %>)</li>
        <% end -%>
      <% end -%>
      </ul>
      <div class="clear"></div>
    </div>
  </div>
  <div class="conner_tag_bottom more"><img src="/images/arrow_tag_1.gif" width="7" height="11" alt=" " />&nbsp;&nbsp;显示全部</div>
  <!--标签数量-->
  <div class="clearfix"> 在<span class="font_color4"><strong><%= @tag.name %></strong></span>分类中共找到相关信息<span class="font_color4"><strong><%= @items.total_entries %></strong></span>件。 </div>
  <!--图片开始-->
  <div class="product_list">
    <div class="title">
      <ul>
        <li>排序：</li>
        <li class="<%= sort_by('name') %>"><%= link_to '综合排序↓', tag_path(:name => @tag.name, :params => params.merge(:order => 'name')) %></li>
        <li class="<%= sort_by('global_rating') %>"><%= link_to '评分排序↓', tag_path(:name => @tag.name, :params => params.merge(:order => 'global_rating')) %></li>
        <li class="<%= sort_by('created_at') %>"><%= link_to '最新上架↑', tag_path(:name => @tag.name, :params => params.merge(:order => 'created_at')) %></li>
      </ul>
      <div class="more_blue">
        <%= will_paginate @items, :page_links => false %>
      </div>
    </div>
    <div class="clear"></div>
    <ul class="product_list_img clearfix">
      <% @items.each do |item| -%>
        <li>
          <% link_to item_path(item) do %><%= image_tag "#{item.main_pic}_170x170.jpg", :title => "#{item.name}", :alt => "#{item.name}"%><% end %><br/>
          <%= link_to truncate(item.name, :length => 28), item_path(item) %> <br/>
          <span class="font_color4"><%= item.want_buy_count %></span>
          <span class="pl">人想买／</span>
          <span class="font_color4"><%= item.bought_count %></span>
          <span class="pl">人买过</span><br/>
          <span class="star"><span class="allstar<%= show_start(item) %> star"></span> <span class="pl"><%= item.global_rating %></span></span>
        </li>
      <% end -%>
    </ul>
    <div class="clear"></div>
    <!--分页-->
    <%= will_paginate @items %>
  </div>
</div>
<!--右侧栏目开始-->
<div class="aside_tag">
  <!--广告开始 -->
  <div class="ads_top_right"><img src="/images/icon/ads_top_1.jpg" width="240" height="190" alt="广告图片" /></div>
  <!--广告结束-->
  
  <!--
  <div class="conner_gray_top_tag"></div>
  <div class="hot_tags">
    <h2 class="">相关标签</h2>
    <ul class="content clearfix">
      <li><a href="#">蕾丝衫</a></li>
      <li><a href="#">女包</a></li>
      <li><a href="#">连衣裙</a></li>
      <li><a href="#">手表</a></li>
      <li><a href="#">耐克</a></li>
      <li><a href="#">牛仔裤</a></li>
      <li><a href="#">女包</a></li>
      <li><a href="#">连衣裙</a></li>
      <li><a href="#">耐克</a></li>
      <li><a href="#">牛仔裤</a></li>
      <li><a href="#">耐克</a></li>
      <li><a href="#">耐克</a></li>
    </ul>
    <div class="clear"></div>
    <div class="tag_text">
      <input name="textfield" type="text" class="textinput" id="textfield" value="去其他标签" />
      <input type="submit" name="button" id="button" value="进入" />
    </div>
  </div>
  <div class="conner_gray_bottom_tag"></div>
  -->
  
  <!--谁买过这件衣服开始-->
  <!--
  <h2 class="tab_greenh2">
    <ul class="tab_tag">
      <li class="select"><span><%= @tag.name %>相关店铺推荐</span> </li>
    </ul>
  </h2>
  <div class="clear" ></div>
  <div class="conner_green_top_tag"></div>
  <div class="photo_show">
    <div class="content clearfix">
      <ul>
        <% Item.active.limit(9).each_with_index do |item, index| -%>
          <li>
            <% link_to item_path(item) do %><%= image_tag "#{item.main_pic}_60x60.jpg", :title => "#{item.name}", :alt => "#{item.name}"%><% end %><br/>
            <%= link_to truncate(item.name, :length => 18), item %>
          </li>
        <% end -%>
      </ul>
    </div>
  </div>
  <div class="conner_green_bottom_tag"></div>
  -->
  
  <!--最近热评-->
  <h2 class="tab_greenh2">
    <ul class="tab_tag">
      <li class="select"><span>最近<%= @tag.name %>热评</span> </li>
    </ul>
  </h2>
  <div class="clear" ></div>
  <div class="conner_green_top_tag"></div>
  <div class="week_top">
    <ul class="content">
      <% Item.active.limit(10).each_with_index do |item, index| -%>
        <li class="clearfix">
          <div class="top_number number<%= index > 2 ? '' : index + 1 %>"><%= index + 1 %></div>
          <div class="adimg"><img src="/images/icon/top_select_img.png" width="54" height="43" alt=" " /></div>
          <div class="name_tag"><%= link_to truncate(item.name, :length => 18), item %></div>
          <div class="price"><%= link_to 'Hitao价: 2.20元', item %></div>
        </li>
      <% end -%>
    </ul>
  </div>
  <div class="conner_green_bottom_tag"></div>
  
  <!--推荐开始-->
  <h2 class="tab_greenh2">
    <ul class="tab_tag">
      <li class="select" style="width:90px; text-align:center;"><span>浏览历史</span> </li>
    </ul>
  </h2>
  <div class="clear"></div>
  <div class="conner_green_top_tag"></div>
  <div class="photo_show">
    <div class="content clearfix">
      <ul>
        <% Item.active.limit(9).each_with_index do |item, index| -%>
          <li>
            <% link_to item_path(item) do %><%= image_tag "#{item.main_pic}_60x60.jpg", :title => "#{item.name}", :alt => "#{item.name}"%><% end %>
          </li>
        <% end -%>
      </ul>
    </div>
    <div class="ul" style="margin-bottom: 12px;"></div>
    <div style="text-align:center"><a href="#">清除</a></div>
  </div>
  <div class="conner_green_bottom_tag"></div>
</div>

